QT       += core gui
QT       += core gui sql

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets


# dock use
ADS_OUT_ROOT = $${OUT_PWD}/..

# dock use
DESTDIR = $${ADS_OUT_ROOT}/lib
CONFIG += debug_and_release
adsBuildStatic {
    DEFINES += ADS_STATIC
}

LIBS += -L$${ADS_OUT_ROOT}/lib
include(../ads.pri)
INCLUDEPATH += ./src
DEPENDPATH += ./src

# 确保在运行时能找对应的DLL
CONFIG(debug, debug|release) {
    DESTDIR = $$PWD/bin/debug
} else {
    DESTDIR = $$PWD/bin/release
}

# 添加RabbitMQ库
INCLUDEPATH += $$PWD/mq
INCLUDEPATH += $$PWD/mq/include
LIBS += -L$$PWD/lib -llibrabbitmq.4

INCLUDEPATH += $$PWD/MySql
INCLUDEPATH += $$PWD/UI
INCLUDEPATH += $$PWD/Logger
INCLUDEPATH += $$PWD/Command
INCLUDEPATH += $$PWD/Control

TARGET = AGV_BD
TEMPLATE = app

DEFINES += QT_DEPRECATED_WARNINGS

CONFIG += c++14

SOURCES += \
        main.cpp \
        mainwindow.cpp \
    mq\mqclient.cpp \
    mq\mqclientconfigdialog.cpp \
    mq\mqconfigmanager.cpp \
    mq\mqconnectionpool.cpp \
    mq\mqprotocolconfig.cpp \
    mq\mqsamplemessagehandler.cpp \
    mq\mqsimpleconsumer.cpp \
    UI\AddNewAGV.cpp \
    UI\AGV_Display.cpp \
    UI\AGV_Function_Selection.cpp \
    UI\AlterDataDialog.cpp \
    UI\ShowVehicle_Management.cpp \
    UI\AGV_Send_TaskDialog.cpp \
    UI\AGV_Send_API_Commands.cpp \
    Control\AddMyPushButton.cpp \
    UI\TableButtonFunction.cpp \
    MySql\MyDatabase.cpp \
    MySql\MyDatabase_Parameters.cpp \
    Logger\LoggerDialog.cpp \
    Logger\Logger.cpp \
    Command\CommandSendorReceive.cpp \
    Command\PackageData.cpp \
    Command\SignalAnalysis.cpp \
    MySql/MultiFilterProxy.cpp \
    MySql/CellDataFormat.cpp \
    Control/SwitchButton.cpp


HEADERS += \
        mainwindow.h \
    mq\mqclient.h \
    mq\mqclientconfigdialog.h \
    mq\mqconfigmanager.h \
    mq\mqconnectionpool.h \
    mq\mqmessagehandler.h \
    mq\mqprotocolconfig.h \
    mq\mqsamplemessagehandler.h \
    mq\mqsimpleconsumer.h \
    UI\AGV_Display.h \
    UI\AGV_Function_Selection.h \
    UI\AddNewAGV.h \
    UI\AlterDataDialog.h \
    UI\ShowVehicle_Management.h \
    UI\AGV_Send_TaskDialog.h \
    UI\AGV_Send_API_Commands.h \
    Control\AddMyPushButton.h \
    UI\TableButtonFunction.h \
    MySql\MyDatabase.h \
    MySql\MyDatabase_Parameters.h \
    Logger\Logger.h \
    Logger\LoggerDialog.h \
    Command\AGV_Data_Storage.h \
    Command\CommandSendorReceive.h \
    Command\PackageData.h \
    Command\SignalAnalysis.h \
    MySql/MultiFilterProxy.h \
    MySql/CellDataFormat.h \
    Control/SwitchButton.h


FORMS += \
        mainwindow.ui \
    mqclientconfig.ui \
    AddNewAGV.ui \
    AGV_Display.ui \
    AGV_Function_Selection.ui \
    AlterDataDialog.ui \
    ShowVehicle_Management.ui \
    AGV_Send_TaskDialog.ui \
    MyDatabase_Parameters.ui \
    AGV_Send_API_Commands.ui \
    LoggerDialog.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target


RESOURCES += \
    resources.qrc

DISTFILES += \
    ../mq/lib/liblibrabbitmq.4.a \
    ../mq/lib/librabbitmq.4.dll.a \
    ../mq/lib/librabbitmq.4.dll



